PDF_FILES := $(addprefix pdf/,$(patsubst %.svg,%.pdf,$(wildcard *.svg)))

all: create_dirs  $(PDF_FILES) 

create_dirs:
	mkdir -p pdf

pdf/%.pdf: %.svg
	inkscape $< --export-pdf=$@ --export-area-drawing

clean:
	rm -fr pdf

.PHONY: clean
.PHONY: create_dirs
.PHONY: all

